AMD/IOMMU: don't needlessly log headers when dumping IRTs
authorJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:28:42 +0000 (13:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:28:42 +0000 (13:28 +0200)
commitb28ae8b23cbc40202e6de3017f11bdacac9d9590
tree821acc16d1da8adc9e1672884edfbed1e5b514a6
parent9e0e225a3aeccd807a8db88ba4669f8ab30ecc99
AMD/IOMMU: don't needlessly log headers when dumping IRTs

Log SBDF headers only when there are actual IRTEs to log. This is
particularly important for the total volume of output when the ACPI
tables describe far more than just the existing devices. On my Rome
system so far there was one line for every function of every device on
all 256 buses of segment 0, with extremely few exceptions (like the
IOMMUs themselves).

Also only log one of the "per-device" or "shared" overall headers.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_intr.c